"""
    Defines modules for reading from and writing to resource data files.
    
    TODO: A more robust standard resource loading mechanism is much needed.
"""

from .. import resource
import library
import image
import composite
import tileset
import world
#import sound

__all__ = (
    'library',
    'image',
    'composite',
    'tileset',
    'world',
    'register_types'
)

def register_types():
    """ Registers all the autoloaders defined in this package.
        This is called by sbak.init().
    """
    resource.register_type('surface', surface._autoload)
    resource.register_type('image', image._autoload)
    resource.register_type('composite', composite._autoload)
    resource.register_type('tileset', tileset._autoload)
    resource.register_type('world', world._autoload)
#    resource.register_type('animation', image._autoload_animation)
#    resource.register_type('composite', image._autoload_composite)
